package com.xinya.taobaosale.model.api;

import com.xinya.taobaosale.model.domain.CategoryBean;
import com.xinya.taobaosale.model.domain.HomePagerDiscoveryBean;
import com.xinya.taobaosale.model.domain.ResultBean;
import com.xinya.taobaosale.model.domain.TicketBean;
import com.xinya.taobaosale.model.domain.TicketParams;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;

/**
 * @ClassName: ISunOfBeach$
 * @Description: java类作用描述
 * @Author: xinya
 * @CreateDate: 2021/2/1$ 20:32$
 * @UpdateRemark: 更新内容
 * @Version: 1.0
 */
public interface ISunOfBeach {
    @GET("discovery/categories")
    Call<ResultBean<List<CategoryBean>>> getCategories();

    @GET("discovery/{materialId}/{page}")
    Call<ResultBean<List<HomePagerDiscoveryBean>>> getHomePagerDiscovery(@Path("materialId") int id,
                                                                         @Path("page") int page);

    @POST("tpwd")
    Call<ResultBean<TicketBean>> getTicket(@Body TicketParams params);
}
